import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PerformanceAnalysisComponent } from "./performance-analysis.component";

const routes: Routes = [{
  path: '',
  component: PerformanceAnalysisComponent,
  children: [
    {path: '', redirectTo: 'group-overview',pathMatch: 'full'},
    {path: 'group-overview', loadChildren: 'app/pages/performance-analysis/children/group-overview/group-overview.module#GroupOverviewModule'},
    {path: 'regional-overview/:id', loadChildren: 'app/pages/performance-analysis/children/regional-overview/regional-overview.module#RegionalOverviewModule'},
    {path: 'station-overview/:id', loadChildren: 'app/pages/performance-analysis/children/station-overview/station-overview.module#StationOverviewModule'},
    {path: 'device-overview/:id', loadChildren: 'app/pages/performance-analysis/children/device-overview/device-overview.module#DeviceOverviewModule'},
    {path: 'effience-overview', loadChildren: 'app/pages/performance-analysis/children/effience-overview/effience-overview.module#EffienceOverviewModule'},
    {path: 'deviation-overview', loadChildren: 'app/pages/performance-analysis/children/deviation-overview/deviation-overview.module#DeviationOverviewModule'},
    {path: 'spider-overview/:id', loadChildren: 'app/pages/performance-analysis/children/spider-overview/spider-overview.module#SpiderOverviewModule'},
    {path: 'alternator-overview/:id', loadChildren: 'app/pages/performance-analysis/children/alternator-overview/alternator-overview.module#AlternatorOverviewModule'},
    {path: 'scatter-overview/:id', loadChildren: 'app/pages/performance-analysis/children/scatter-overview/scatter-overview.module#ScatterOverviewModule'},
    {path: 'stability-overview/:id', loadChildren: 'app/pages/performance-analysis/children/stability-overview/stability-overview.module#StabilityOverviewModule'},
    {path: 'stability-trend-overview/:id', loadChildren: 'app/pages/performance-analysis/children/stability-trend-overview/stability-trend-overview.module#StabilityTrendOverviewModule'}
  ]
}];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})

export class PerformanceAnalysisRoutingModule { }
